package org.person.gift.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.person.gift.service.IShopCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 这个类是用来做购物车数据同步的定时任务类的
 */
@Component
public class ShopCarDataSyncJobHandler {

    @Autowired
    private IShopCarService shopCarService;

    @XxlJob("shopCar-data-sync-job")
    public void dataSync(){
        System.out.println("============开始购物车数据同步=====================");
        shopCarService.dataSync();
        System.out.println("============结束购物车数据同步=====================");
    }

}
